package com.systop.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.jetbrains.annotations.NotNull;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("`order`")
public class Order{
  @TableId(type = IdType.INPUT)
  private Long orderId;
  private String orderNo;
  private Long goodsId;
  private Integer goodsNum;
  private Double sumPrice;
  private Long consigneeId;
  private Long userId;
  private Integer orderStatus;
  @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
  private Date modifyTime;
  @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
  private Date createTime;
  @TableField(exist = false)
  private int start;
  @TableField(exist = false)
  private int pageSize;
  @TableField(exist = false)
  private Goods goods;
  @TableField(exist = false)
  private Consignee consignee;
}
